package com.gict.antifraudback.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @TableName menu
 */
@TableName(value = "menu")
@Data
public class Menu extends BaseEntity implements Serializable {

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 父id
     */
    private Integer parentId;

    /**
     * 是否有下级
     */
    private Integer isLeaf;

    /**
     * 链接
     */
    private String link;

    /**
     * 背景图
     */
    private String pic;

    /**
     * 排序
     */
    private Integer sort;

    @TableField(exist = false)
    private List<Menu> children;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}